<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta content="black-translucent" name="apple-mobile-web-app-status-bar-style">
    <title>直播室</title>
    <link href="/public/static/css/main.css" rel="stylesheet">
    <link href="/public/static/css/chat.css" rel="stylesheet">
    <link href="/public/static/css/lightbox.css" rel="stylesheet">
    <script src="/public/static/js/jquery.js"></script>
    <script src="/public/static/js/jquery.json.js"></script>
    <script src="/public/static/js/common.js" charset="utf-8"></script>
    <script src="/public/static/js/config.js" charset="utf-8"></script>
    <script src="/public/static/js/comet.js" charset="utf-8"></script>
    <script src="/public/static/js/chat.js" charset="utf-8"></script>
    <script src="/public/static/js/Handlebars.js" charset="utf-8"></script>
    <script src="/public/static/js/handlebarsHelper.js" charset="utf-8"></script>
    <!-- <link href="//public/static/css/bootstrap-responsive.css" rel="stylesheet"> -->
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/r29/html5.js"></script>
    <![endif]-->

</head>
<body oncopy="return false;" >

<div class="container">
            
            <div id="right-column2">
              <div class="hdbox" id="callDataBox">
                <div class="hdtit"></div>
                <div class="hd_data">
                    <div class="hd_jc">
                        <p class="hd_nodata green">今日未建仓</p>
                    </div>
                    <div class="hd_pc">
                       
                    </div>
                </div>
                <p class="hd_sug"></p>
                <span class="hd_history" onclick="center('callHistoryBox')">查看历史</span>
              </div>
              <div class="jjbox" style="height:190px">
              <a href="" class="yy-hd"><img src="/public/static/img/yy.jpg"></a>
              </div>
              <div class="jjbox">
                  <div class="jjtit">重要经济数据公告牌</div>
                  <div class="" id="imDataBox">
                      
                  </div>
                  <div class="jjtit">免责声明</div>
                  <p class="mzcontent">分析师所发表言论只代表个人观点，仅供参考，不构成买卖建议，投资有风险，入市需谨慎。</p>
              </div>
              
            </div>
            <div id="right-column" >
               <div class="maintitle"><img src="/public/static/img/l-logo.jpg"><a href="/index.php?g=user&m=profile&a=edit" target="_blank" class="self_setting"><i class="chat-ico chat-setting"></i>个人设置</a></div>
               <div class="listbox">
                <ul class="chat_right_tab tabul">
                    <li class="active">直播观点</li>
                    <li onclick="isTabLoad(this,function(){loadHistoryNote()})" data-load="true">纸条提问</li>
                    <li>专家团队</li>
                    <li onclick="isTabLoad(this,function(){loadzhanfaHistory()})" data-load="true">投资战法</li>
                </ul>
                <div class="chatwordbox tabbox  active">
                    <ul class="chat-nei" id="chat-teacher-messages" data-page="1">

                    </ul>

                </div>
                <div class="chatwordbox tabbox">
                    <div class="chat-nei">
                        <ul class="note-nei" id="note-msg" data-page="1">
                            
                        </ul>
                        <div class="chat-sendmes">
                        <div id="chat-tool">给
                            <select id="teacherSelect">

                            </select>
                            发纸条 
                            <a id="note_face" class="chat-face" onClick="toggleFace('note-facebox')"><i class="chat-ico chat-faceico"></i></a>
                        </div>
                        <div id="note-facebox" class="show_face">
                        </div>
                        <div id="input-msg">
                            <form class="form-horizontal post-form">
                                <div class="input-append">
                                    <textarea id="note_content" class="areacontent" rows="3" cols="500" contentEditable="true" maxlength="200"></textarea>
                                </div>
                                
                                <input type="button" class="sendmesbt" onClick="checkSend('note_content',1,'note')" value="发送">
                            </form>
                        </div>
                    </div>
                    </div>
                    
                </div>
                <div class="chatwordbox tabbox">
                    <div class="chat-nei">
                        <ul id="teacher-team">
    
                        </ul>
                    </div>
                </div>
                <div class="chatwordbox tabbox">
                    <div class="chat-nei" id="zf-boxdiv" data-page="1">
                        <img src="/public/static/img/tzzd.jpg" style="display:block;width:100%;margin:10px auto;max-width:642px">
                        <ul class="zf-item" id="zf-box">
                        </ul>
                    </div>
                </div>
              </div>

               
            </div>
            <div id="chat-columnleft" class="span8">
                <div id="chat-messages" style="border:0px solid #ccc;" data-page="1">
                    
                </div>

                <div class="chat-sendmes">
                    <div id="chat-tool">网友互动
                        <a id="chat_face" class="chat-face" onClick="toggleFace('chat-facebox')"><i class="chat-ico chat-faceico"></i></a>
                    </div>
                    <div id="chat-facebox" class="show_face">
                    </div>
                    <div id="input-msg">
                        <form id="msgform" class="form-horizontal post-form">
                            <div class="input-append">
                                <textarea id="msg_content" class="areacontent" rows="3" cols="500" contentEditable="true" maxlength="200"></textarea>
                            </div>
                            
                            <input type="button" class="sendmesbt" onClick="checkSend('msg_content',1,'message')" value="发送">
                        </form>
                    </div>
                </div>
            </div>
</div>
<div class="checkbox" id="callHistoryBox">
    <span class="closebt closer"></span>
    <h3>查看近一周操作建议</h3>
    <div class="conbox" style="height: 433px">
        <table class="history-table">
            <thead>
                <tr>
                    <th width="60">老师</th>
                    <th width="150">时间</th>
                    <th width="90">买入卖出</th>
                    <th width="70">委托类型</th>
                    <th width="60">点位</th>
                    <th width="50">仓位</th>
                    <th width="60">止盈</th>
                    <th width="60">止损</th>
                    <th width="">备注</th>
                    <th width="70">平仓详情</th>
                </tr>
            </thead>
            <tbody id="callHistoryDate">

            </tbody>
        </table>
    </div>
</div>
<div class="stopLive"></div>
<!--喊单-->
<script type="text/x-template-handlebars" id="callTemplate">
    <div class="hdtit"><span class="hd_av"><img src="{{#compare teacher.avatar "==" null}}/public/static/img/dftx.jpg{{else}}{{teacher.avatar}}{{/compare}}"></span>
    <div class="hd_name"><p>姓名：{{teacher.name}}</p><p>交易品种：{{deal_variety_name}}</p></div>
    </div>
    <div class="hd_data">
        <div class="hd_jc">
            <p class="hd_jg red">{{price}}</p>
            <p class="hd_jgword">建仓价</p>
            <p class="hd_jgjian red">{{category_name}}</p>
        </div>
        <div class="hd_pc"> 
            {{#compare if_close "==" 1}}
                <p class="hd_jg green">{{close_price}}</p>
                <p class="hd_jgword">平仓价</p>
                <p class="hd_jgjian green">{{#compare category "==" 1}}卖出平仓{{else}}买入平仓{{/compare}}</p>
            {{else}}
                <p class="hd_jcp" style="margin-top:5px">止盈：{{stop_profit_price}}</p>
                <p class="hd_jcp">止损：{{stop_loss_price}}</p>
                <p class="hd_jcp">仓位：{{position_name}}</p>
                <p class="hd_jcp">{{price_category_name}}</p>
            {{/compare}}
        </div>
    </div>
    <p class="hd_sug">{{#compare if_close "==" 1}}平仓观点：<span class="red">{{close_remark}}</span>{{else}}建仓观点：<span class="red">{{remark}}</span>{{/compare}}</p>
    <span class="hd_history" onClick="center('callHistoryBox')">查看历史</span>
</script>
<!--经济数据-->
<script type="text/x-template-handlebars" id="importantTemplate">
    <div class="jj_cont">
        <h3>{{content}}</h3>
        <p>公布时间：<span class="blue">{{r_time}}</span></p>
    </div>
  <div class="jj_data"><p>前值：{{f_data}}</p><p>预期值：<span class="green">{{y_data}}</span></p></div>
  <div class="jj_data jj_right"><p>公布值</p><p class="red">{{r_data}}</p></div>
</script>
<!--网友聊天-->
<script type="text/x-template-handlebars" id="userChatTemplate">
{{#compare from "!=" 0}}
    <div class="message-container">
        <div class="content">
            <span class="chatmes_avatar">
            <img src="{{#compare user.avatar "!=" null}}{{user.avatar}}{{else}}/public/static/img/dftx.jpg{{/compare}}">
            </span>
            <div class="chatnameline">
            <span class="chatname chatnamep">{{user.name}}</span>
            <span class="chatmestime">{{showTime create_time "HH:mm:ss"}}</span>
            </div>
            <span class="chatmesline chatmeslinep"><span class="chatcontent">{{data}}</span>{{#compare user.isme "!=" 1}}<span class="replybt" data-uid="{{user.uid}}" data-time="{{create_time}}" data-uname="{{user.name}}" data-content="{{data}}" onclick="toTalk(this)" >[回复]</span>{{/compare}}</span>
            {{#compare reply_uid "!=" null}}
                <div class="replybox">
                    <span class="chatname chatnamep">{{reply_user.name}}</span>
                    <span class="chatmestime">{{showTime reply_time "HH:mm:ss"}}</span>
                    <p><span class="chatcontent">{{reply_message}}</span></p>
                </div>
            {{/compare}}
        </div>
    </div>
{{/compare}}
</script>
<!--老师消息-->
<script type="text/x-template-handlebars" id="teacherChatTemplate">
{{#compare from "!=" 0}}
    <li class="teacherMsg">
        <div class="chat_t_portrait"><img src="{{#compare user.avatar "!=" null}}{{user.avatar}}{{else}}/public/static/img/dftx.jpg{{/compare}}"></div>
        <div class="chat_t_content">
            <p>{{user.name}}&nbsp;&nbsp;{{showTime create_time "HH:mm:ss"}}</p>
            <p class="chat_t_conword red" style="font-size:{{size}}px;color:{{color}}">
                {{#compare type "==" "img"}}
                    <a class="chatimg" href="{{data}}" data-lightbox="chat-imgitem"><img src="{{data}}"></a>
                {{else}}
                    <span class="chatcontent">{{data}}</span>
                {{/compare}}

            </p>
            {{#compare reply_uid "!=" null}}
            <p class="chat_t_reply">回复 {{reply_user.name}}：<span class="chatcontent">{{reply_message}}</span></p> 
            {{/compare}} 
        </div>
    </li>
{{/compare}}
</script>
<!--纸条-->
<script type="text/x-template-handlebars" id="userNoteTemplate">
{{#compare from "!=" 0}}
    <li class="teacherMsg noteMsg">
        <div class="chat_t_portrait"><img src="{{#compare user.avatar "!=" null}}{{user.avatar}}{{else}}/public/static/img/dftx.jpg{{/compare}}"></div>
        <div class="chat_t_content">
        <p><span class="blue">{{user.name}}</span>&nbsp;&nbsp;对&nbsp;&nbsp;<span class="blue">{{to_user.name}}</span>&nbsp;&nbsp;说&nbsp;&nbsp;{{showTime create_time "HH:mm:ss"}}</p>
        <p class="chat_t_conword red"><span class="chatcontent">{{data}}</span></p>
        {{#compare note_uid "!=" null}}
        <p class="chat_t_reply">回复 {{to_user.name}}：<span class="chatcontent">{{note_message}}</span></p> 
        {{/compare}}
        </div>
    </li>
{{/compare}}
</script>
<!--老师团队-->
<script type="text/x-template-handlebars" id="teamTemplate">
{{#each this}}
<li>
    <div class="t-word-av">
        <img src="{{avatar}}">
    </div>
    <div class="t-word-name"><p>{{user_title--}}{{user_nicename}}</p><p class="t-star">服务星级：<span class="u-star u-star{{user_star}}"></span></p></div>
    <div class="">{{signature}}</div>
</li>
{{/each}}
</script>

<!--历史喊单-->
<script type="text/x-template-handlebars" id="callHistoryTemplate">
{{#each this}}
    
    <tr class="kai-tr">
        <td>{{teacher.name}}</td>
        <td>{{create_time}}</td>
        <td>{{#compare category "==" 1}}<span class="redbg">{{category_name}}</span>{{else}}<span class="greenbg">{{category_name}}</span>{{/compare}}</td>
        <td>{{price_category_name}}</td>
        <td>{{price}}</td>
        <td>{{position_name}}</td>
        <td>{{stop_profit_price}}</td>
        <td>{{stop_loss_price}}</td>
        <td>{{remark}}</td>
        <td>{{#compare if_close "==" 1}}<span onclick="showPing(this)" class="showpbtn">查看平仓</span>{{else}}未平仓{{/compare}}</td>
    </tr>
    {{#compare if_close "==" 1}}
    <tr class="ping-tr">
        <td>{{teacher.name}}</td>
        <td>{{close_time}}</td>
        <td><span class="bluebg">{{#compare category "==" 1}}卖出平仓{{else}}买入平仓{{/compare}}</span></td>
        <td>{{close_price_category_name}}</td>
        <td>{{close_price}}</td>
        <td>----</td>
        <td>----</td>
        <td>----</td>
        <td>{{close_remark}}</td>
        <td class="ping-posi"><span class="chat-ico ping-jiao"></span></td>
    </tr>
    {{/compare}}
{{/each}}
</script>
<!--投资战法-->
<script type="text/x-template-handlebars" id="zhanFaTemplate">
{{#each this}}
    <li>
        <div class="zf-tit">【{{title}}】&nbsp;{{showTime create_time "YY/MM/DD"}}</div>
        <p>简介：{{content}}</p>
        <a href="{{url}}" target="_blank" class="zf-download">下载<i></i></a>
    </li>
{{/each}}
</script>
<script src="/public/static/js/lightbox.js" charset="utf-8"></script>
<script src="/public/static/js/pageload.js" charset="utf-8"></script>
<script type="text/javascript">
    pageload.init()

    lightbox.option({
      'albumLabel': ""
    })

</script>
</body>
</html>

